<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<jsp:include page="../header.jsp" />
<section id="team_page"></section>
<div class="page_wrap">
	<ul id="selectTeam">
		<!-- id = navigation -->
		<li class="team_board_menu">${team.teamName }</li>
	</ul>
	<div class="myteam_list">
		<h1>My Team Members</h1>
		<div class="team_member">
			<div class="dept_background" style="position: absolute;">
				<div class="dept" id="manager">
					<h2>부장</h2>
					<ul><c:forEach var="manager" items="${manager}">
					<li onclick="teamMemberInfo(${manager.empNo})"><img src="${manager.imgPath }"/>${manager.name }</li>
					</c:forEach></ul>
				</div>
				<div class="dept" id="deputymanater">
					<h2>과장</h2>
					<ul><c:forEach var="deputymanager" items="${deputymanager}">
					<li onclick="teamMemberInfo(${deputymanager.empNo})"><img src="${deputymanager.imgPath }"/>${deputymanager.name }</li>
					</c:forEach></ul>
				</div>
				<div class="dept" id="assistantmanager">
					<h2>대리</h2>
					<ul><c:forEach var="assistantmanager" items="${assistantmanager}">
					<li onclick="teamMemberInfo(${assistantmanager.empNo})"><img src="${assistantmanager.imgPath }"/>${assistantmanager.name }</li>
					</c:forEach></ul>
				</div>
				<div class="dept" id="supervisor">
					<h2>주임</h2>
					<ul><c:forEach var="supervisor" items="${supervisor}">
					<li onclick="teamMemberInfo(${supervisor.empNo})"><img src="${supervisor.imgPath }"/>${supervisor.name }</li>
					</c:forEach></ul>
				</div>
				<div class="dept" id="staff">
					<h2>사원</h2>
					<ul><c:forEach var="staff" items="${staff}">
					<li onclick="teamMemberInfo(${staff.empNo})"><img src="${staff.imgPath }"/>${staff.name }</li>
					</c:forEach></ul>
				</div>
			</div>
			<div class="team_page_wrap"></div>
		</div><!-- team_member end div -->
	</div><!-- myteam_list end div -->
</div><!-- page_wrap end div -->
<jsp:include page="../footer.jsp" />